import { request } from '@/utils/request';

const Api = {
  List: '/financial/base/list',
  add: '/financial/base',
};

// 列表
export function getList(params: any) {
  return request.get({
    url: Api.List,
    params,
  });
}

// 详情
export function getInfo(id: number | string) {
  return request.get({
    url: `${Api.add}/${id}`,
  });
}
